//
//  ComputerPart.h
//  访问者模式
//
//  Created by flannery on 2018/12/18.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ComputerPart.h"
#import "ComputerPartVisitor.h"

@protocol ComputerPart <NSObject>
-(void)accept:(ComputerPartVisitor*) computerPartVisitor;
@end

@interface Keyboard : NSObject <ComputerPart>

@end

@interface Monitor : NSObject <ComputerPart>

@end


@interface Mouse : NSObject <ComputerPart>

@end


@interface Computer : NSObject <ComputerPart>

@end
